#include <iostream>
#include <string>
using namespace std;
int main()
{
    // 请在此输入您的代码
    string S;
    cin >> S;
    int l = 0;
    int r = S.size() - 1;
    bool ans = true;
    while (l <= r)
    {
        if (S[l] != S[r])
        {
            ans = false;
            break;
        }
        l++;
        r--;
    }
    cout << (ans ? "Y" : "N") << endl;
    return 0;
}